﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using Soul.Request;
using Soul.Request.Core;
using System.ServiceModel;
using Soul.Command;

namespace Soul.CommandTest
{
    class Program
    {
        static void Main(string[] args)
        {
            //ContainerRegister();
            using (ServiceHost host = new ServiceHost(typeof(RequestCenter)))
            {
                host.Open();
                Console.WriteLine("服务已启动，按任意键关闭");
                Console.ReadKey();
            }
        }


        static void ContainerRegister()
        {
            IUnityContainer container = new UnityContainer();
            container.RegisterInstance<IUnityContainer>(container);

            container.RegisterType<IRequestCenter, RequestCenter>();

            var x = container.Resolve<IRequestCenter>();
        }
    }
}
